/**
 * Created by thomas on 2017/5/2.
 */
/**
 * Created by thomas on 2017/5/2.
 */
var config = require("./webpack.config.js");
var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');

// config.entry.app.jsx.unshift("webpack-dev-server/client?http://localhost:8080/");

var compiler = webpack(config);
var server = new WebpackDevServer(compiler, {
    contentBase:'./',
    publicPath: "./"
});

server.listen(8080);